package com.yhq.spring.manual;

import lombok.Data;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;

/**
 * @author hqyin
 * @date 2023/4/6 5:23 下午
 */
@Data
public class CustomBeanDefinition {
    final String SCOPE_SINGLETON = "singleton";
    final String SCOPE_PROTOTYPE = "prototype";

    private String scope = SCOPE_SINGLETON;
    private boolean lazyInit = false;
    private String type;
    private Class<?> beanClass;

    public boolean isSingleton() {
        return SCOPE_SINGLETON.equals(this.scope);
    }
}
